home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / AOCE Sample Code / PowerTalk Access Modules / Sample PMSAM / PMSAM Framework / RoboSamSlot / IncomingHFSLetter.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-28  |  3.1 KB  |  156 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        IncomingHFSLetter.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by:    David Akhond
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.  
  13.     To Do: 
  14.     
  15.     
  16.     
  17.     //--------------------------------------------------------------------------------------------------------------------
  18.     //
  19.     //        Incoming Letter Format
  20.     //
  21.     //        An incoming letter consists of 1 to 3 parts:
  22.     //
  23.     //            1. The LetterFolder - mandatory - the folder that is parent to the letter parts. 
  24.     //                                              Child of Preferences:HFSGate:Incoming
  25.     //
  26.     //            2. The LetterFile - optional - the file that holds the text for letter recipients and text and the style
  27.     //                                            resource. It is always 
  28.     //                                                Type:    TEXT
  29.     //                                             Creator:    ttxt
  30.     //                                            SimpleText files are type TEXT and creator ttxt.
  31.     //                                            if there is no letter  file, there is no letter.
  32.     //
  33.     //            3. The EnclosureFolder - optional - any other file or folder is considered an enclosure
  34.     //
  35.     //
  36.     //            /////////////////////////////////////////////////////////////////////////////////////
  37.     //            // From:    fromRecipient
  38.     //            // To:        toRecipient1,toRecipient2,toRecipient3
  39.     //            // CC:        ccRecipient1,ccRecipient2,ccRecipient3
  40.     //            // BCC:        bccRecipient1,bccRecipient2,bccRecipient3
  41.     //            //
  42.     //            // Subject: subjectString
  43.     //            //
  44.     //            // (MessageText -
  45.     //            //    All following
  46.     //            //    text is the message 
  47.     //            //    text.)
  48.     //            /////////////////////////////////////////////////////////////////////////////////////
  49.     //
  50.     //        All recipients of each type must fit on one line
  51.     //
  52.     //--------------------------------------------------------------------------------------------------------------------
  53.     
  54. */
  55.  
  56.  
  57.  
  58. #ifndef __IncomingHFSLetter__
  59. #define __IncomingHFSLetter__
  60.  
  61. class    TMSAMSlot;
  62.  
  63. #ifndef __FILES__
  64. #include    "Files.h"
  65. #endif
  66.  
  67. #ifndef __MEMORY__
  68. #include "Memory.h"
  69. #endif
  70.  
  71. #ifndef     __FileUtils__
  72. #include    "Files.h"
  73. #endif
  74.  
  75. #ifndef __OCE__
  76. #include "OCE.h"
  77. #endif
  78.  
  79. #ifndef __OCEMESSAGING__
  80. #include "OCEMessaging.h"
  81. #endif
  82.  
  83. #ifndef __OCEMAIL__
  84. #include "OCEMail.h"
  85. #endif
  86.  
  87. #ifndef __STRINGS__
  88. #include "Strings.h"
  89. #endif
  90.  
  91. #ifndef        __ALetter__
  92. #include    "ALetter.h"
  93. #endif
  94.  
  95.  
  96. #ifndef __IncomingHFSStream__
  97. #include    "IncomingHFSStream.h"
  98. #endif
  99.  
  100.  
  101. //-----------------------------------------------------------
  102.  
  103.  
  104.  
  105. class    TIncomingHFSLetter {
  106.  
  107. public:
  108.                                 TIncomingHFSLetter();
  109.                                 ~TIncomingHFSLetter();
  110.                                 
  111.         void                    IIncomingHFSLetter(TMSAMSlot*        theSlot, CFolder*     theLetterFolder);
  112.         
  113.         void                    LetterIn();
  114.         
  115.         void                    LetterFile();
  116.         
  117.         void                    LetterContents();
  118.         
  119.         void                    LetterTimeStamp();
  120.         
  121.         void                    LetterRecipients();
  122.         
  123.         void                    ToLetterRecipients();
  124.         void                    CCLetterRecipients();
  125.         void                    BCCLetterRecipients();
  126.         
  127.         void                    LetterSubject();
  128.         
  129.         void                    LetterBody();
  130.         
  131.         void                    LetterPlainTextSegments();
  132.         void                    LetterStyleTextSegments();
  133.         
  134.         void                    LetterPICTSegments();
  135.         void                    LetterMOOVSegents();
  136.         void                    LetterSoundSegments();
  137.         
  138.         void                    LetterEnclosures();
  139.  
  140. private:
  141.  
  142.         TMSAMSlot*                fMSAMSlot;
  143.         CFolder*                fLetterFolder;
  144.         CFile*                    fLetterFile;
  145.         
  146.         CIncomingHFSStream*        fIncomingStream;
  147.         TIncomingALetter*        fALetter;
  148.         
  149.         MailTime                fMailTime;
  150.  
  151. };
  152.  
  153.  
  154.  
  155.  
  156. #endif